count all occurances in python